﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WROA.Models.Entitys;
using System.Web.Mvc;
using WROA.Models.Services;

namespace WROA.Models.ViewModels.AccountModels
{
    public class RegistView
    {
        private Users userData;
        public Users UserData
        {
            get { return userData; }
            set { userData = value; }
        }

        public IEnumerable<SelectListItem> RoleListName
        {
            get
            {
                UserService us = new UserService();
                IList<SelectListItem> roleListName = us.GetRoleListName();
                return roleListName.AsEnumerable();
            }
        }

        public IEnumerable<SelectListItem> PositionListName
        {
            get
            {
                UserService us = new UserService();
                IList<SelectListItem> positionListName = us.GetPositionListName();
                return positionListName.AsEnumerable();
            }
        }
    }
}